package beans;

import java.io.Serializable;

public class Category implements Serializable {
    private static final long serialVersionUID = -3382885826885439663L;
    private int categoryId;
    private String categoryName;
    private int isFunction;

    public Category() {
    }

    public Category(int id, String name) {
        this.categoryId = id;
        this.categoryName = name;
    }

    public int getCategoryId() { return categoryId; }

    public void setCategoryId(int categoryId) { this.categoryId = categoryId; }

    public String getCategoryName() { return categoryName; }

    public void setCategoryName(String categoryName) { this.categoryName = categoryName; }

    public int getIsFunction() { return isFunction; }

    public void setIsFunction(int isFunction) { this.isFunction = isFunction; }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + categoryId +
                ", name='" + categoryName + '\'' +
                ", isFunction=" + isFunction +
                '}';
    }
}
